<?php
//	echo pr($usr);
    //echo pr($task);
?>
<section class="container_6 clearfix">

<fieldset>
<legend><?php echo $task['Job']['title']?></legend>
<br />
            
<p><b>Start Date : </b><?php echo $task['Job']['sdate']?></p>
<p><b>End Date : </b><?php echo $task['Job']['edate']?></p>
<p><b>Description :</b></p>
<p><?php echo nl2br($task['Job']['description']) ?></p>

<div >
<?php
    
    
    
    
   
    
echo '<p><b>Special Instructions :</b></p>';
echo '<p>' . nl2br($task['Job']['hiddendetails']) . '</p>';

               
         
?>
</div>
</fieldset>


<?php
    if($_SESSION['Group'][0]['name'] == 'User')
    {
        echo $form->create('Job', array('action' => 'jaddnote/' . $task['Job']['id']));
        echo '<fieldset>';
        echo '<legend>Volunteer Notes</legend>';
        if(isset($task['Job']['volnotes']))
        {$vn = $task['Job']['volnotes'];}
        if(isset($task['Job']['volhours']))
        {$vh = $task['Job']['volhours'];}
        
        echo 'Approx Hours to complete:';
        echo $form->input('Job.volhours', array('label' => '', 'size' => '1', 'maxlength' => '2', 'value' => $vh));
        echo 'Notes you would like to add(optional):<br>';
        echo $form->textarea('Job.volnotes', array('rows' => '5', 'cols' => '50', 'value' => $vn, 'class' => 'full'));
        echo $form->button('<span class="accept"></span>Save Notes', array('class' => 'button button-gray accept'));
        echo $form->end();
        echo '</fieldset>';
    }
    else
    {
        echo $form->create('Job', array('action' => 'ajaddnote/' . $task['Job']['id']));
        echo '<fieldset>';
        echo '<legend>Volunteer Notes</legend>';
        if(isset($task['Job']['volnotes']))
        {$vn = $task['Job']['volnotes'];}
        if(isset($task['Job']['volhours']))
        {$vh = $task['Job']['volhours'];}
        
        echo 'Approx Hours to complete:';
        echo $form->input('Job.volhours', array('label' => '', 'size' => '1', 'maxlength' => '2', 'value' => $vh));
        echo 'Notes you would like to add(optional):<br>';
        echo $form->textarea('Job.volnotes', array('rows' => '5', 'cols' => '50', 'value' => $vn, 'class' => 'full'));
        echo '</fieldset>';
        echo '<fieldset>';
        echo '<legend>Staff Notes</legend>';
        if(isset($task['Job']['staffnotes']))
        {$sn = $task['Job']['staffnotes'];}
        echo $form->textarea('Job.staffnotes', array('rows' => '5', 'cols' => '50', 'value' => $sn, 'class' => 'full'));
        echo $form->button('<span class="accept"></span>Save Notes', array('class' => 'button button-gray accept'));
        echo $form->end();
        echo '</fieldset>';
    }
?>



</section>